package com.rjgc.title.model.entity.user;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.rjgc.title.model.base.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

/**
 * 执业资格
 *
 * @program: title-parent
 * @author: Mr.Zhuo
 * @create: 2022-04-25 11:33
 **/
@Data
@ApiModel(description = "Practice")
@TableName("practice")
public class Practice extends BaseEntity {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "用户id")
    @TableField("user_id")
    private Long userId;

    @ApiModelProperty(value = "执业资格")
    @TableField("practice_qualification")
    private String practiceQualification;

    @ApiModelProperty(value = "执业资格证书获取时间")
    @JsonFormat(pattern = "yyyy-MM-dd")
    @TableField("practice_time")
    private Date practiceTime;

    @ApiModelProperty(value = "聘书扫描件")
    @TableField("scanning_practice")
    private String scanningPractice;

    @ApiModelProperty(value = "注册单位")
    @TableField("registered_unit")
    private String registeredUnit;

    @ApiModelProperty(value = "注册时间")
    @JsonFormat(pattern = "yyyy-MM-dd")
    @TableField("registered_time")
    private Date registeredTime;

    @ApiModelProperty(value = "注册证书扫描件")
    @TableField("scanning_registered")
    private String scanningRegistered;
}
